<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增城市管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cityData-add">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">城市编码：</label>
                <div class="col-sm-8">
                    <input name="areaname" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">城市名称：</label>
                <div class="col-sm-8">
                    <input name="areaname" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">父级编码：</label>
                <div class="col-sm-8">
                    <input name="parentid" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">简称：</label>
                <div class="col-sm-8">
                    <input name="shortname" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">东经：</label>
                <div class="col-sm-8">
                    <input name="lng" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">北纬：</label>
                <div class="col-sm-8">
                    <input name="lat" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">级别：</label>
                <div class="col-sm-8">
                    <input name="level" class="form-control" type="text" required placeholder="1.省 2.市 3.区 4.镇">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">级别展示：</label>
                <div class="col-sm-8">
                    <input name="position" class="form-control" type="text" required placeholder="tr_0 tr_330000 tr_330600">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排序：</label>
                <div class="col-sm-8">
                    <input name="sort" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/cityData"
        $("#form-cityData-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-cityData-add').serialize());
            }
        }
    </script>
</body>
</html>